From: Keir Fraser Date: Mon, 21 Jun 2010 17:36:39 +0000 (+0100) Subject: Revert 21640:05e127771b86 "libxc: Fix Segmentation fault of xend" X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11898 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=411e8c2fef67c8c31b466f4cad10cc42b3c328e7;p=xen.git Revert 21640:05e127771b86 "libxc: Fix Segmentation fault of xend" Nacked-by: Ian Jackson Signed-off-by: Keir Fraser --- diff --git a/tools/libxc/xc_private.c b/tools/libxc/xc_private.c index 13a990a58c..9761b98af4 100644 --- a/tools/libxc/xc_private.c +++ b/tools/libxc/xc_private.c @@ -82,10 +82,8 @@ const xc_error *xc_get_last_error(xc_interface *xch) void xc_clear_last_error(xc_interface *xch) { - if (xch) { - xch->last_error.code = XC_ERROR_NONE; - xch->last_error.message[0] = '\0'; - } + xch->last_error.code = XC_ERROR_NONE; + xch->last_error.message[0] = '\0'; } const char *xc_error_code_to_desc(int code)